From 7cae28f35a80a069f51ae4dfc3f9e2550527f372 Mon Sep 17 00:00:00 2001
From: rofl0r <retnyg@gmx.net>
Date: Fri, 28 Sep 2012 00:02:04 +0200
Subject: [PATCH] remove superfluous is_system_libdir check

this caused -L/lib not being printed when prefix= was used.
the test was bogus anyway, because it used strcmp on non-reduced paths
directly. so //lib and /lib were 2 different things, when in reality
they are not.
---
 main.c |   21 ---------------------
 1 files changed, 0 insertions(+), 21 deletions(-)

diff --git a/main.c b/main.c
index a5eff0a..345846b 100644
--- a/main.c
+++ b/main.c
@@ -55,24 +55,6 @@ static char *sysroot_dir = NULL;
 
 FILE *error_msgout = NULL;
 
-static bool
-fragment_has_system_dir(pkg_fragment_t *frag)
-{
-	switch (frag->type)
-	{
-	case 'L':
-		if ((want_flags & PKG_KEEP_SYSTEM_CFLAGS) == 0 && !strcasecmp(SYSTEM_LIBDIR, frag->data))
-			return true;
-	case 'I':
-		if ((want_flags & PKG_KEEP_SYSTEM_LIBS) == 0 && !strcasecmp(SYSTEM_INCLUDEDIR, frag->data))
-			return true;
-	default:
-		break;
-	}
-
-	return false;
-}
-
 static inline const char *
 print_sysroot_dir(pkg_fragment_t *frag)
 {
@@ -93,9 +75,6 @@ print_sysroot_dir(pkg_fragment_t *frag)
 static void
 print_fragment(pkg_fragment_t *frag)
 {
-	if (fragment_has_system_dir(frag))
-		return;
-
 	if (frag->type)
 		printf("-%c%s%s ", frag->type, print_sysroot_dir(frag), frag->data);
 	else
-- 
1.7.3.4

